#!bin/bash

FILE="Disk.csv"

#Remove previous results
rm $FILE

#Prepare file for results
echo "Read_Random :;Read_Sequential :;Write_Random :; Write_Sequetial :; Latency;" >> $FILE

#Compute and put results in the file
for i in `seq 1 $1`;
do
    ./BMDisk $2 2>> $FILE
done

#Open the csv file with Libre Office
oocalc $FILE
